﻿@{
    ViewBag.Title = "单词检测记录列表";
}
@section headerSection{
    <style>
        #exampleToolbar > .form-group {
            float: left;
            margin: 0;
            margin-left: 5px;
        }
    </style>
}
<div class="animated fadeInRight">
    <!-- Panel Other -->
    <div class="ibox float-e-margins" style="margin-bottom: 0px;">
        <div class="ibox-content" style="padding: 5px 20px 0px 20px;">
            <div class="row row-lg">
                <div class="col-sm-12 col-sm-leftRight">
                    <!-- Example Toolbar -->
                    <div class="example">
                        <div class="btn-group hidden-xs" id="exampleToolbar" role="group">
                            @{
                                List<string> folderList = (List<string>)ViewBag.elementList;
                                if (folderList.Contains("wordAdd"))
                                {
                                    <button id="wordAdd" type="button" class="btn btn-outline btn-primary">
                                        <i class="glyphicon glyphicon-plus" aria-hidden="true">新增</i>
                                    </button>
                                }
                                if (folderList.Contains("wordEdit"))
                                {
                                    <button id="wordEdit" type="button" class="btn btn-outline btn-primary">
                                        <i class="glyphicon glyphicon-pencil" aria-hidden="true">编辑</i>
                                    </button>
                                }
                                if (folderList.Contains("wordDel"))
                                {
                                    <button id="wordDel" type="button" class="btn btn-outline btn-danger">
                                        <i class="glyphicon glyphicon-trash" aria-hidden="true">删除</i>
                                    </button>
                                }
                                if (folderList.Contains("btnSearch"))
                                {
                                    <div class="form-group">
                                        <input id="keyword" name="keyword" type="text" class="form-control" style="width:120px;" placeholder="用户名">
                                    </div>
                                    <div class="form-group">
                                        <input id="fileName" name="fileName" type="text" class="form-control" style="width:120px;" placeholder="作品名">
                                    </div>
                                    <div class="form-group">
                                        <input id="cpName" name="cpName" type="text" class="form-control" style="width:120px;" placeholder="关卡名">
                                    </div>
                                    <div class="form-group">
                                        <input id="word" name="word" type="text" class="form-control" style="width:120px;" placeholder="单词名">
                                    </div>
                                    <div class="form-group">
                                        <input id="startDate" name="startDate" type="text" class="laydate-icon form-control input-sm" style="width:130px;" placeholder="开始日期" title="开始日期" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})" />
                                    </div>
                                    <div class="form-group">
                                        <input id="endDate" name="endDate" type="text" class="laydate-icon form-control input-sm" style="width:130px;" placeholder="结束日期" title="结束日期" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})" />
                                    </div>
                                    <div class="form-group">
                                        <button id="btnSearch" class="btn btn-primary" type="button"><i class="fa fa-search"></i>&nbsp;查询</button>
                                    </div>
                                }
                            }
                        </div>
                        <table id="exampleTableToolbar" data-mobile-responsive="true" data-radio="true"></table>
                    </div>
                    <!-- End Example Toolbar -->
                </div>
            </div>
        </div>
    </div>
    <!-- End Panel Other -->
</div>
@section footSection{
    <script src="~/Resources/myScript/HeadManager/detectionManager.js"></script>
    <script>
        $(function () {
            detectionManager.initPage();
        });
    </script>
}


